package com.dy.course.model;

import java.util.Date;
import javax.persistence.*;

@Table(name = "course_user")
public class CourseUser {
    /**
     * 课程id
     */
    @Id
    @Column(name = "course_id")
    private Long courseId;

    /**
     * 学生id
     */
    @Id
    @Column(name = "user_id")
    private Long userId;

    /**
     * 加入课堂时间
     */
    @Column(name = "join_time")
    private Date joinTime;

    /**
     * 离开课堂时间
     */
    @Column(name = "leave_time")
    private Date leaveTime;

    /**
     * 开课院系,不能为空,没有默认值
     */
    @Column(name = "faculty_id")
    private Long facultyId;

    /**
     * 大学id
     */
    @Column(name = "university_id")
    private Long universityId;

    /**
     * 加入原因
     */
    @Column(name = "join_reason")
    private String joinReason;

    /**
     * 离开原因
     */
    @Column(name = "leave_reason")
    private String leaveReason;

    /**
     * 获取课程id
     *
     * @return course_id - 课程id
     */
    public Long getCourseId() {
        return courseId;
    }

    /**
     * 设置课程id
     *
     * @param courseId 课程id
     */
    public void setCourseId(Long courseId) {
        this.courseId = courseId;
    }

    /**
     * 获取学生id
     *
     * @return user_id - 学生id
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * 设置学生id
     *
     * @param userId 学生id
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * 获取加入课堂时间
     *
     * @return join_time - 加入课堂时间
     */
    public Date getJoinTime() {
        return joinTime;
    }

    /**
     * 设置加入课堂时间
     *
     * @param joinTime 加入课堂时间
     */
    public void setJoinTime(Date joinTime) {
        this.joinTime = joinTime;
    }

    /**
     * 获取离开课堂时间
     *
     * @return leave_time - 离开课堂时间
     */
    public Date getLeaveTime() {
        return leaveTime;
    }

    /**
     * 设置离开课堂时间
     *
     * @param leaveTime 离开课堂时间
     */
    public void setLeaveTime(Date leaveTime) {
        this.leaveTime = leaveTime;
    }

    /**
     * 获取开课院系,不能为空,没有默认值
     *
     * @return faculty_id - 开课院系,不能为空,没有默认值
     */
    public Long getFacultyId() {
        return facultyId;
    }

    /**
     * 设置开课院系,不能为空,没有默认值
     *
     * @param facultyId 开课院系,不能为空,没有默认值
     */
    public void setFacultyId(Long facultyId) {
        this.facultyId = facultyId;
    }

    /**
     * 获取大学id
     *
     * @return university_id - 大学id
     */
    public Long getUniversityId() {
        return universityId;
    }

    /**
     * 设置大学id
     *
     * @param universityId 大学id
     */
    public void setUniversityId(Long universityId) {
        this.universityId = universityId;
    }

    /**
     * 获取加入原因
     *
     * @return join_reason - 加入原因
     */
    public String getJoinReason() {
        return joinReason;
    }

    /**
     * 设置加入原因
     *
     * @param joinReason 加入原因
     */
    public void setJoinReason(String joinReason) {
        this.joinReason = joinReason;
    }

    /**
     * 获取离开原因
     *
     * @return leave_reason - 离开原因
     */
    public String getLeaveReason() {
        return leaveReason;
    }

    /**
     * 设置离开原因
     *
     * @param leaveReason 离开原因
     */
    public void setLeaveReason(String leaveReason) {
        this.leaveReason = leaveReason;
    }
}